import type { BuildFormCreate } from './type';

export const formCreateBindValue = (
  formCreate: BuildFormCreate[],
  value: { [key: string]: any },
) => {
  formCreate.forEach((item) => {
    if (value[item.field]) {
      item.value = value[item.field];
    }
  });
};
